﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AcademicAudit_JoelShuman
{
	class MainRecords
	{
		public static String STUDENTDIR = "../../DataFiles/Students/";
		public static bool UNSAVEDCHANGES = false;
		public MainRecords() { m_AllStudents = new List<StudentRecord>(); }

		public List<StudentRecord> m_AllStudents { get; set; }

		public List<Course> m_DefaultCourseList { get; set;}

		public StudentRecord GetStudentByID(String theID)
		{
			foreach (StudentRecord thisRecord in m_AllStudents)
			{
				if (thisRecord.m_StudentID == theID)
				{
					return thisRecord;
				}
			}

			return null;
		}
	}
}
